// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///E:/dsw/dev/sf-db-system-web/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/dsw/dev/sf-db-system-web/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///E:/dsw/dev/sf-db-system-web/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import legacy from "file:///E:/dsw/dev/sf-db-system-web/node_modules/@vitejs/plugin-legacy/dist/index.mjs";
import Components from "file:///E:/dsw/dev/sf-db-system-web/node_modules/unplugin-vue-components/dist/vite.js";
import { AntDesignVueResolver } from "file:///E:/dsw/dev/sf-db-system-web/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_import_meta_url = "file:///E:/dsw/dev/sf-db-system-web/vite.config.js";
var vite_config_default = defineConfig(() => {
  return {
    base: "./",
    define: {
      APP_MOCK_ENABLE: JSON.stringify(process.argv.includes("--mock"))
    },
    plugins: [
      vue(),
      vueJsx(),
      legacy(),
      Components({
        resolvers: [
          AntDesignVueResolver({
            importStyle: false
            // css in js
          })
        ]
      })
    ],
    resolve: {
      alias: {
        "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
      }
    },
    server: {
      proxy: {
        "/api": {
          // target: 'http://192.168.1.222:8888',
          // target: 'http://139.224.43.89:8888',
          // target: 'http://127.0.0.1:8000',
          target: "http://139.196.179.195:12395",
          // target: 'http://192.168.1.13:12395',
          changeOrigin: true,
          rewrite: (path) => {
            return path.replace(/^\/api/, "");
          }
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxkc3dcXFxcZGV2XFxcXHNmLWRiLXN5c3RlbS13ZWJcIj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JcbiAgICAgIHZ1ZSgpLFxyXG4gICAgICB2dWVKc3goKSxcclxuICAgICAgbGVnYWN5KCksXHJcbiAgICAgIENvbXBvbmVudHMoe1xyXG4gICAgICAgIHJlc29sdmVyczogW1xyXG4gICAgICAgICAgQW50RGVzaWduVnVlUmVzb2x2ZXIoe1xyXG4gICAgICAgICAgICBpbXBvcnRTdHlsZTogZmFsc2UsIC8vIGNzcyBpbiBqc1xyXG4gICAgICAgICAgfSksXHJcbiAgICAgICAgXSxcclxuICAgICAgfSksXHJcbiAgICBdLFxyXG4gICAgcmVzb2x2ZToge1xyXG4gICAgICBhbGlhczoge1xyXG4gICAgICAgICdAJzogZmlsZVVSTFRvUGF0aChuZXcgVVJMKCcuL3NyYycsIGltcG9ydC5tZXRhLnVybCkpLFxyXG4gICAgICB9LFxyXG4gICAgfSxcclxuICAgIHNlcnZlcjoge1xyXG4gICAgICBwcm94eToge1xyXG4gICAgICAgICcvYXBpJzoge1xyXG4gICAgICAgICAgLy8gdGFyZ2V0OiAnaHR0cDovLzE5Mi4xNjguMS4yMjI6ODg4OCcsXHJcbiAgICAgICAgICAvLyB0YXJnZXQ6ICdodHRwOi8vMTM5LjIyNC40My44OTo4ODg4JyxcclxuICAgICAgICAgIC8vIHRhcmdldDogJ2h0dHA6Ly8xMjcuMC4wLjE6ODAwMCcsXHJcbiAgICAgICAgICB0YXJnZXQ6ICdodHRwOi8vMTM5LjE5Ni4xNzkuMTk1OjEyMzk1JyxcclxuICAgICAgICAgIC8vIHRhcmdldDogJ2h0dHA6Ly8xOTIuMTY4LjEuMTM6MTIzOTUnLFxyXG4gICAgICAgICAgY2hhbmdlT3JpZ2luOiB0cnVlLFxyXG4gICAgICAgICAgcmV3cml0ZTogcGF0aCA9PiB7XHJcbiAgICAgICAgICAgIHJldHVybiBwYXRoLnJlcGxhY2UoL15cXC9hcGkvLCAnJylcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgfSxcclxuICAgICAgfSxcclxuICAgIH0sXHJcb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